package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsAdminMapper;
import com.qf.pojo.DtsAdmin;
import com.qf.service.DtsAdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DtsAdminServiceImpl implements DtsAdminService {

    @Resource
    DtsAdminMapper adminMapper;
    @Override
    public DtsAdmin selectOne(String username) {
        return adminMapper.selectOne(new LambdaQueryWrapper<DtsAdmin>().eq(DtsAdmin::getUsername,username).eq(DtsAdmin::getDeleted,false));
    }
}